package com.stx.jeepay.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.stx.jeepay.core.entity.PayInterfaceConfigEntity;
import com.stx.jeepay.core.entity.PayInterfaceDefineEntity;


import java.util.List;
import java.util.Map;

/**
 * 支付接口配置参数表
 *
 * @author suntingxing
 * @email 1@gmail.com
 * @date 2023-09-11 13:05:22
 */
public interface PayInterfaceConfigService extends IService<PayInterfaceConfigEntity> {

    List<PayInterfaceDefineEntity> selectAllPayIfConfigListByAppId(String appId);

    /**
     * 根据 账户类型、账户号、接口类型 获取支付参数配置
     */
    PayInterfaceConfigEntity getByInfoIdAndIfCode(Byte infoType, String infoId, String ifCode);

    /**
     * 根据 账户类型、账户号 获取支付参数配置列表
     */
    List<PayInterfaceDefineEntity> selectAllPayIfConfigListByIsvNo(Byte infoType, String infoId);

    /** 查询商户app使用已正确配置了通道信息 */
    boolean mchAppHasAvailableIfCode(String appId, String ifCode);
}

